import request from "@/utils/request";

// 查询公司信息列表
export function listBizCompany(query) {
  return request({
    url: "/biz/bizCompany/list",
    method: "get",
    params: query,
  });
}

// 查询公司信息详细
export function getBizCompany(id) {
  return request({
    url: "/biz/bizCompany/" + id,
    method: "get",
  });
}

// 新增公司信息
export function addBizCompany(data) {
  return request({
    url: "/biz/bizCompany",
    method: "post",
    data: data,
  });
}

// 修改公司信息
export function updateBizCompany(data) {
  return request({
    url: "/biz/bizCompany",
    method: "put",
    data: data,
  });
}

// 删除公司信息
export function delBizCompany(id) {
  return request({
    url: "/biz/bizCompany/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizCompany/findMaxSort",
    method: "get",
  });
}
// 导出公司信息
export function exportBizCompany(query) {
  return request({
    url: "/biz/bizCompany/export",
    method: "get",
    params: query,
  });
}
// 账户充值
export function rechange(data) {
  return request({
    url: "/biz/bizCompany/rechange",
    method: "post",
    data: data,
  });
}
